package MazeGenProject;

import java.awt.Color;
import java.awt.Graphics;
import java.util.List;

import org.jhotdraw.figures.LineFigure;
import org.jhotdraw.figures.PolyLineHandle;
import org.jhotdraw.framework.HandleEnumeration;
import org.jhotdraw.standard.HandleEnumerator;
import org.jhotdraw.util.CollectionsFactory;
public class GridFigure extends LineFigure {
	
	public GridFigure(){
		super();
	}
	
	@Override
	protected void basicMoveBy(int dx, int dy) {
		//do Nothing
	}
	
	@Override
	public HandleEnumeration handles() {
		List handles = CollectionsFactory.current().createList(fPoints.size());
		return new HandleEnumerator(handles);
	}
	
	protected void drawLine(Graphics g, int x1, int y1, int x2, int y2) {
		g.setColor(new Color(211,211,211));
		g.drawLine(x1, y1, x2, y2);
	}

}
